package com.qf.mapper;

import com.qf.pojo.Lianhe;
import com.qf.pojo.LianheExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LianheMapper {
    int countByExample(LianheExample example);

    int deleteByExample(LianheExample example);

    int deleteByPrimaryKey(Integer lid);

    int insert(Lianhe record);

    int insertSelective(Lianhe record);

    List<Lianhe> selectByExample(LianheExample example);

    Lianhe selectByPrimaryKey(Integer lid);

    int updateByExampleSelective(@Param("record") Lianhe record, @Param("example") LianheExample example);

    int updateByExample(@Param("record") Lianhe record, @Param("example") LianheExample example);

    int updateByPrimaryKeySelective(Lianhe record);

    int updateByPrimaryKey(Lianhe record);

    //按typename查询联合表
    List<Lianhe> findLianheByTypename(String typename);

    //随机查询联合表
    List<Lianhe> findLianheRand();

    //模糊查询
    List<Lianhe>findAll(String lname);
    //查询所有
    List<Lianhe>findAlllianhe();


}